package date1207.aop.after;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lu.jdog.util.Resource;

import date1207.aop.after.bean.Gaoshou;
import dog.bean.IWuxia;

/**
 * @author Yue
 * @date 2017年12月7日 上午11:31:54
 */
public class SpringTest {
	private static AbstractApplicationContext applicationContext;

	public static void main(String[] args){
		applicationContext = new ClassPathXmlApplicationContext(Resource.getAssertPath(SpringTest.class, "beans.xml"));
		
		Gaoshou gaoshou = applicationContext.getBean(Gaoshou.class);
		gaoshou.ni("坑爹", "90");
		
		try {
			gaoshou.pullEx("自己抛异常");
		} catch (Exception e) {
			//但是，我不再打印了。
		}
		
		
		
		IWuxia dishou = applicationContext.getBean(IWuxia.class);
		dishou.play();
		
	}
}
